/*
 * @Description:
 * @Version: 2.0
 * @Autor: zhangjx
 * @Date: 2023-05-26 18:21:33
 * @LastEditors: uphldjx 1373577124@qq.com
 * @LastEditTime: 2024-07-29 10:07:32
 */

import { RouteRecordRaw } from 'vue-router'
const DefaultLayout = () => import('@/layout/default/index.vue')
const Layout = DefaultLayout
const remainingRouter: RouteRecordRaw[] = [
	{
		path: '/redirect',
		component: Layout,
		name: 'Redirect',
		children: [
			{
				path: '/redirect/:path(.*)',
				name: 'Redirect',
				component: () => import('@/views/system/Redirect/Redirect.vue'),
				meta: {},
			},
		],
		meta: {
			hidden: true,
			noTagsView: true,
		},
	},
	{
		path: '/',
		component: Layout,
		redirect: '/index',
		name: 'Home',
		meta: {},
		children: [
			{
				path: 'index',
				component: () => import('@/views/admin/wel/index.vue'),
				name: 'Index',
				meta: {
					title: '首页',
					icon: 'ep:home-filled',
					noCache: false,
					affix: true,
				},
			},
			{
				path: '/setting',
				name: 'setting',
				meta: {
					transition: 'slide-left',
					purl: '',
					title: '个人中心',
				},
				component: () => import('@/views/system/setting/index.vue'),
			},
			{
				path: '/placeOnFile',
				name: 'placeOnFile',
				meta: {
					transition: 'slide-left',
					purl: '',
					title: '归档集',
				},
				component: () => import('@/views/datacenter/placeOnFile/index.vue'),
			},
		],
	},
	{
		path: '/user/login',
		name: 'userLogin',
		meta: {
			transition: 'slide-left',
			purl: '',
			title: '用户登录',
		},
		component: () => import('@/views/login/index.vue'),
	},
	{
		path: '/formDesign',
		name: 'formDesign',
		meta: {
			transition: 'slide-left',
			purl: '',
			title: '表单设计器',
		},
		component: () => import('@/views/aplid/FormDesign/index.vue'),
	},
	{
		path: '/sso',
		name: 'sso',
		meta: {
			transition: 'slide-left',
			purl: '',
			title: 'sso',
		},
		component: () => import('@/views/system/authsso/index.vue'),
	},
	{
		path: '/workSpace',
		name: 'workSpace',
		meta: {
			transition: 'slide-left',
			purl: '',
			title: '工作台配置',
		},
		component: () => import('@/views/workSpace/home/operate/index.vue'),
	},
	{
		path: '/demo',
		name: 'demo',
		meta: {
			transition: 'slide-left',
			purl: '',
			title: '测试',
		},
		component: () => import('@/views/demo/index.vue'),
	},
	{
		path: '/datav',
		name: 'datav',
		meta: {
			transition: 'slide-left',
			purl: '',
			title: '测试',
		},
		component: () => import('@/views/admin/datav/index.vue'),
	},
	{
		path: '/403',
		component: () => import('@/views/system/Error/403.vue'),
		name: 'NoAccess',
		meta: {
			hidden: true,
			title: '403',
			noTagsView: true,
		},
	},
	{
		path: '/500',
		component: () => import('@/views/system/Error/500.vue'),
		name: 'error_500',
		meta: {
			hidden: true,
			title: '500',
			noTagsView: true,
		},
	},
	{
		path: '/404',
		component: () => import('@/views/system/Error/404.vue'),
		name: 'NoFound',
		meta: {
			hidden: true,
			title: '404',
			noTagsView: true,
		},
	},
]

export default remainingRouter
